package com.studio701.carguard.mapper;

import com.studio701.carguard.pojo.CarManagement;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xjc
 * @since 2022-03-29
 */
public interface CarManagementMapper extends BaseMapper<CarManagement> {

    boolean removeCarByUserIdAndCId(Integer userId, Integer cId);

    boolean updateByUserIdAndCId(@Param("carManagement") CarManagement carManagement);

    CarManagement getCarByUserIdAndCId(Integer userId, Integer cId);
}
